package ooday05;

public class demonstrationOfStaticVariables {
    public static void main(String[] args) {
        demonstrationOfStaticVariables ds1 = new demonstrationOfStaticVariables();
        ds1.show();


        demonstrationOfStaticVariables ds2 = new demonstrationOfStaticVariables();
        ds2.show();

//        demonstrationOfStaticVariables ds3 = new demonstrationOfStaticVariables();

        demonstrationOfStaticVariables ds4 = new demonstrationOfStaticVariables();
        ds4.show();

    }
    int a;
    static int b;

     demonstrationOfStaticVariables() {
       ++a;
       ++b;
    }
    void show(){
        System.out.println("a="+a+",b="+b);
    }
}
